# default: on
# description: mysqlchk
# {{ ansible_managed }}
service mysqlchk
{
        disable = no
        flags = REUSE
        socket_type = stream
        port = {{ galera_monitoring_check_port }}
        wait = no
        user = nobody
        server = /usr/local/bin/clustercheck
        log_on_failure += USERID
        {% if galera_monitoring_allowed_source is defined %}
        only_from = {{ galera_monitoring_allowed_source }}
        {% else %}
        no_access
        {% endif %}
        per_source = UNLIMITED
}
